package fr.umlv.m2.jee.portailEtudiant.service;

import fr.umlv.m2.jee.portailEtudiant.persistence.Course;
import fr.umlv.m2.jee.portailEtudiant.persistence.Td;

import java.io.Serializable;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 07/02/11
 * Time: 01:59
 * To change this template use File | Settings | File Templates.
 */
public class DisplayTd implements Serializable {

    private Td td;

    public DisplayTd(Td td) {
        this.td = td;
    }



    public String getName() {
        return td.getName();
    }

    public String getUserName() {
        return td.getUserName();
    }



    public Course getCourse() {
        return td.getCourse();
    }
    public void setId(long newId) {
        this.td.setId(newId);
    }

    public void setName(String newName) {
        this.td.setName(newName);
    }

    public void setUserName(String newUserName) {
        this.td.setUserName(newUserName);
    }

    public void setCourse(Course course) {
        this.td.setCourse(course);
    }
   //@Override
  // public String toString() {
    //   return "[ name "+this.getName() +" ]";
    //}

    public Td getTd() {
        return td;
    }

    public void setTd(Td td) {
        this.td = td;
    }
}
